package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 所属学校表
 *
 * @author zhiyuan
 * @since 2023-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_school_hx")
@Schema(name = "EduSchoolHx", title = "所属学校表", description = "所属学校表实体类")
public class EduSchoolHx extends Model<EduSchoolHx> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "schoolId", title = "学校id")
    @TableId(value = "school_id", type = IdType.ASSIGN_ID)
    private String schoolId;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "schoolNature", title = "学校性质0.公办 1.民办")
    @TableField(value = "school_nature")
    private String schoolNature;

    @Schema(name = "schoolCategory", title = "学校类别")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "street", title = "所属街道")
    @TableField(value = "street")
    private String street;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "schoolXszjzmj", title = "校舍总建筑面积")
    @TableField(value = "school_xszjzmj")
    private Double schoolXszjzmj;

    @Schema(name = "schoolTycdmj", title = "体育场地面积")
    @TableField(value = "school_tycdmj")
    private Double schoolTycdmj;

    @Schema(name = "schoolKxjs", title = "科学教室数")
    @TableField(value = "school_kxjs")
    private Integer schoolKxjs;

    @Schema(name = "schoolDgnjs", title = "多功能教室数")
    @TableField(value = "school_dgnjs")
    private Integer schoolDgnjs;

    @Schema(name = "schoolJsjjs", title = "计算机教室数")
    @TableField(value = "school_jsjjs")
    private Integer schoolJsjjs;

    @Schema(name = "schoolYmjs", title = "音美教室数")
    @TableField(value = "school_ymjs")
    private Integer schoolYmjs;

    @Schema(name = "schoolJxyqs", title = "教学仪器数")
    @TableField(value = "school_jxyqs")
    private Integer schoolJxyqs;

    @Schema(name = "schoolTscs", title = "图书册数")
    @TableField(value = "school_tscs")
    private Integer schoolTscs;

    @Schema(name = "schoolGgjss", title = "骨干教师数")
    @TableField(value = "school_ggjss")
    private Integer schoolGgjss;

    @Schema(name = "schoolPtjss", title = "普通教师数")
    @TableField(value = "school_ptjss")
    private Integer schoolPtjss;

    @Schema(name = "schoolJsdzrs", title = "大专教师人数")
    @TableField(value = "school_jsdzrs")
    private Integer schoolJsdzrs;

    @Schema(name = "schoolJsbkrs", title = "本科教师人数")
    @TableField(value = "school_jsbkrs")
    private Integer schoolJsbkrs;

    @Schema(name = "schoolJsssrs", title = "硕士教师人数")
    @TableField(value = "school_jsssrs")
    private Integer schoolJsssrs;

    @Schema(name = "schoolJsbsrs", title = "博士教师人数")
    @TableField(value = "school_jsbsrs")
    private Integer schoolJsbsrs;

    @Schema(name = "schoolJsqtrs", title = "其他学历教师人数")
    @TableField(value = "school_jsqtrs")
    private Integer schoolJsqtrs;

    @Schema(name = "schoolJj", title = "简介")
    @TableField(value = "school_jj")
    private String schoolJj;

    @Schema(name = "schoolYnjbjgs", title = "一年级班级个数")
    @TableField(value = "school_ynjbjgs")
    private Integer schoolYnjbjgs;

    @Schema(name = "schoolEnjbjgs", title = "二年级班级个数")
    @TableField(value = "school_enjbjgs")
    private Integer schoolEnjbjgs;

    @Schema(name = "schoolSnjbjgs", title = "三年级班级个数")
    @TableField(value = "school_snjbjgs")
    private Integer schoolSnjbjgs;

    @Schema(name = "schoolSinjbjgs", title = "四年级班级个数")
    @TableField(value = "school_sinjbjgs")
    private Integer schoolSinjbjgs;

    @Schema(name = "schoolWnjbjgs", title = "五年级班级个数")
    @TableField(value = "school_wnjbjgs")
    private Integer schoolWnjbjgs;

    @Schema(name = "schoolLnjbjgs", title = "六年级班级个数")
    @TableField(value = "school_lnjbjgs")
    private Integer schoolLnjbjgs;

    @Override
    public Serializable pkVal() {
        return this.schoolId;
    }
}
